package com.wzy.designpattern.structural.decorator.v1;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-15  23:43
 */
public class Test {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getDesc() + "价格" + battercake.cost());

        BattercakeWithEgg battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getDesc() + "价格" + battercakeWithEgg.cost());

        BattercakeWithEggSausage battercakeWithEggSausage = new BattercakeWithEggSausage();
        System.out.println(battercakeWithEggSausage.getDesc() + "价格" + battercakeWithEggSausage.cost());
    }
}
